package com.ailink.app;

import lombok.Data;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

import java.time.LocalDateTime;

@RestController
public class TestArthasController {
    @Data
    public static class User {
        private String username;

        private String password;
    }

    @PostMapping("/test/arthas/user")
    public User user(@RequestBody User user) {
        User result = new User();
        result.username = user.username + LocalDateTime.now();
        result.password = user.password + LocalDateTime.now();
        return result;
    }
}
